package kr.ac.postech.marathon.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Entry {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String type;
	
	@Persistent
	private String name;
	
	@Persistent
	private String dept;
	
	@Persistent
	private String zipCode1;
	
	@Persistent
	private String zipCode2;
	
	@Persistent
	private String address;
	
	public Entry(String type, 
			String name, 
			String dept, 
			String zipCode1, 
			String zipCode2, 
			String address) {
		this.type = type;
		this.name = name;
		this.dept = dept;
		this.zipCode1 = zipCode1;
		this.zipCode2 = zipCode2;
		this.address = address;
	}
	
	public Long getId() {
		return id;
	}
	
	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getDept() {
		return dept;
	}
	
	public void setDept(String dept) {
		this.dept = dept;
	}
	
	public String getZipCode1() {
		return zipCode1;
	}
	
	public void setZipCode1(String zipCode1) {
		this.zipCode1 = zipCode1;
	}
	
	public String getZipCode2() {
		return zipCode2;
	}
	
	public void setZipCode2(String zipCode2) {
		this.zipCode2 = zipCode2;
	}
	
	public String getAddress() {
		return address;
	}
	
	public void setAddress(String address) {
		this.address = address;
	}
}
